<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<form class="form-inline" method="GET" action="<?php echo $this->input->server('REQUEST_URI'); ?>" name="queryForm" id="queryForm">
<input type="hidden" name="c" id="c" value="<?php echo $this->input->get('c') ?>">
<input type="hidden" name="m" id="m" value="<?php echo $this->input->get('m') ?>">
  <div class="form-group">
    <label for="year">所属年份：</label>
    <select class="form-control" id="year" name="year">
      <option value="">请选择</option>
    </select>
  </div>
  <div class="form-group">
    <label for="year">基金类型：</label>
    <?php
    $options = $this->fundType;
    $extra = ' id = "fundType" class="form-control"';
    echo form_dropdown('fundType', $options, $fundType, $extra);
    ?>
  </div>
 <!-- <div class="form-group">
  <button type="submit" class="btn btn-default btn-primary">查询</button>
  </div> -->
</form>
<div style="margin-top: 10px;">
  <?php $this->load->view('Main/part/storeTotalTable'.$fundType)?>
</div>
<script type="text/javascript">
  $(function(){
    $("#year,#fundType").change(function(){
      $("#queryForm").submit();
    });
    loadYearList('year',<?=$year?>);
  });
</script>
<?php $this->load->view('common/foot');?>